package cn.mothin.frame.core.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(value = { ElementType.METHOD })
public @interface NeedPermissionTemplate {
	/**
	 * 创建/添加
	 */
	public static final String CREATE = "0";
	/**
	 * 修改
	 */
	public static final String UPDATE = "1";
	/**
	 * 删除
	 */
	public static final String DELETE = "2";
	/**
	 * 详细信息
	 */
	public static final String DETAIL = "3";
	/**
	 * 导出
	 */
	public static final String EXPORT = "4";
	/**
	 * 配置
	 */
	public static final String CONFIG = "5";

	/**
	 * 模块Id
	 * 
	 * @return
	 */
	public String id();

	/**
	 * 模板
	 * 
	 * @return
	 */
	public String template();

	/**
	 * 备注说明，默认为""
	 * 
	 * @return
	 */
	public String memo() default "";

	/**
	 * 指定其上级功能项，默认空
	 * 
	 * @return
	 */
	public String parent() default "";
}
